package com.study.common;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class Result<T> implements Serializable {
    private int code;
    private String msg;
    private T data;
    String errorDetail;
    public Result(T data) {
        this.code = 0;
        this.msg = "success";
        this.data = data;
    }
}

